/* Author : Putri Andita R
 * 		    091511059
 * Proyek 4*/


package jtk.project4.fleet.field;

import java.awt.FlowLayout;

import jtk.project4.fleet.action.CancelAction;
import jtk.project4.fleet.action.CancelPMServicesAction;

import nl.coderight.jazz.action.Action;
import nl.coderight.jazz.form.FormField;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.button.PushButton;

public class TombolAddPMServicesField extends GroupControl{
	
	private PushButton saveButton;
	private PushButton cancelButton;
	private Action cancelAction;

	
	public TombolAddPMServicesField(String bindID){
		setBindID(bindID);
		createFields();
		createLayout();
	}	
	
	private void createAction()
	{
		cancelAction = new CancelAction();
		
	}
	
	private void createFields() {
		saveButton = new PushButton("saveAction");
		cancelButton = new PushButton(new CancelPMServicesAction());
		}
	
		
	
	private void createLayout() {
		// TODO Auto-generated methodstub
		setLayout(new FormLayout())
		.addField(saveButton)
		.addRow()
		.addField(cancelButton);
		
		}
	


	
}
		
	
	
	